package com.butterfly.hotkey.worker.store;


import com.butterfly.hotkey.core.enums.CacheDurationEnum;
import com.butterfly.hotkey.core.model.HotKeyModel;
import com.google.common.collect.Lists;
import org.springframework.stereotype.Component;

import java.util.Iterator;
import java.util.List;

/**
 * TODO
 *
 * @author butterfly
 * @version 1.0
 */
@Component
public class RedisHotkeyStoreServiceImpl implements HotkeyStoreService {

    @Override
    public void append(HotKeyModel hotKeyModel, CacheDurationEnum duration) {

    }

    @Override
    public Iterator<List<String>> queryHotkeys(String appName) {
        return new Iterator<List<String>>() {
            @Override
            public boolean hasNext() {
                return false;
            }

            @Override
            public List<String> next() {
                return Lists.newArrayList();
            }
        };
    }
}
